<template>
    <div class="add-salesman-box" @click="handleClose" v-if="isTemporary">
        <div class="content absolute-center">
            <img :src="temporaryImgSrc" alt="">
        </div>
    </div>
</template>

<script type="text/ecmascript-6">
    export default{
        data(){
            return {}
        },
        props: ['isTemporary','temporaryImgSrc'],
        methods: {
            handleClose(){
                this.$emit('handleClosePop')
            }
        }
    }
</script>

<style type="text/css" scoped lang="scss">
    @import '../assets/css/base.scss';

    .add-salesman-box {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, .2);
        z-index: 100;

        .content {
            width: 200px;
            height: 200px;

            img {
                width: 100%;
                height: 100%;
            }
        }
    }
</style>